﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Base.Master" AutoEventWireup="true" CodeBehind="CompUserDetail.aspx.cs" Inherits="Exhibition.Manage.CompUserDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <input type="hidden" runat="server" id="hfId" />

    <table class="tbs_table">

    
         <tr>
            <td class="tddata" >用户名</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtUserName" datafield="txtUserName" /></td>
              <td class="tddata" >密码</td>
                 <td class="tddata">
                <input type="password" runat="server" id="txtPassWord" datafield="txtPassWord"  class="text"  /></td>
        </tr>
          <tr>
            <td class="tddata" >姓名</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtRealName" datafield="txtRealName" /></td>
              <td class="tddata" >单位</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtCompName" datafield="txtCompName"  style="width:400px;" /></td>
        </tr>
         <tr>
            <td class="tddata" >部门</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtDepart" datafield="txtDepart" /></td>
              <td class="tddata" >职务</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtPosition" datafield="txtPosition"  /></td>
        </tr>
        <tr>
            <td class="tddata"  style="width:60px" >国家/地区</td>
                 <td class="tddata" colspan="3">
                     <asp:Literal ID="ltrCountry" runat="server"></asp:Literal><input type="text" id="otherCountry"  runat="server" datafield="otherCountry"/>
                </td>
        </tr>
         <tr>
            <td class="tddata" >地址</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtCompAddr" datafield="txtCompAddr" /></td>
              <td class="tddata" >邮编</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtPostCode" datafield="txtPostCode"  /></td>
        </tr>
        
         <tr>
            <td class="tddata" >电话</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtCountryCode" datafield="txtCountryCode" value="086" style="width:30px"  onchange="$('[datafield=txtCountryCode1]').val(this.value)" />-<input type="text" runat="server" id="txtPhoneStart" datafield="txtPhoneStart" style="width:30px" onchange="$('[datafield=txtFaxStart]').val(this.value)"/>-<input type="text" runat="server" id="txtPhoneNum" datafield="txtPhoneNum" style="width:100px"  /></td>
              <td class="tddata" >传真</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtCountryCode1" datafield="txtCountryCode1" value="086" style="width:30px" />-<input type="text" runat="server" id="txtFaxStart" datafield="txtFaxStart" style="width:30px" />-<input type="text" runat="server" id="txtFaxNum" datafield="txtFaxNum" style="width:100px"  /></td>
        </tr>
         <tr>
            <td class="tdtitle">用户等级</td>
            <td class="tddata" colspan="3">
                  <div id="star"></div><div id="result"></div><input type="hidden" runat="server"  id="hfLevel" value="0" datafield="hfLevel"/></td>
        </tr>
         <tr>
            <td class="tddata" >手机</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtMobile" datafield="txtMobile" /></td>
              <td class="tddata" >邮件</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtEmail" datafield="txtEmail" /></td>
        </tr>
        <tr>
            <td class="tddata" >网址</td>
                 <td class="tddata">
                <input type="text" runat="server" id="txtCompSite" datafield="txtCompSite" value="http://" /></td>
              <td class="tddata" ></td>
                 <td class="tddata">
             </td>
        </tr>
        <tr>
            <td class="tddata" >公司性质</td>
                 <td class="tddata"  colspan="4">
                    <asp:Literal ID="ltrnature" runat="server"></asp:Literal>
                 </td>
            
        </tr>

         <tr>
            <td class="tddata" >参展范围</td>
                 <td class="tddata" colspan="4">
                <asp:Literal ID="ltrFW" runat="server"></asp:Literal>
             </td>
        </tr>
          <tr>
            <td class="tddata" ><a href="javascript:"  onclick="$('#trMore').toggle(300);"> +查看更多</a></td>
                 <td class="tddata" colspan="4">
               
             </td>
        </tr>
        <tr id="trMore" style="display:none">
            <td colspan="4"> 
                 <table class="tbs_table">
                     <tr>
                         <td class="tddata" >注册年份</td>
                          <td class="tddata">
                                <input type="text" runat="server" id="txtRegYear" datafield="txtRegYear" /></td>
                           <td class="tddata" >注册资本</td>
                          <td class="tddata">
                                <input type="text" runat="server" id="txtRegMoney" datafield="txtRegMoney" />万</td>
                     </tr>
                      <tr>
                         <td class="tddata" >员工数量</td>
                          <td class="tddata">
                                <input type="text" runat="server" id="txtUserNum" datafield="txtUserNum" /></td>
                           <td class="tddata" >营业执照</td>
                          <td class="tddata">
                                <input type="text" runat="server" id="txtLincense" datafield="txtLincense" /></td>
                     </tr>
                     </table>
            </td>

        </tr>

        <tr>
            <td colspan='4' align='center'>
                <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="bt_wb1" OnClick="btnSave_Click" />&nbsp;&nbsp;<input type="button" value="返回" class="bt_wb1" onclick="YXQ.Manager.CloseDialog();" /></td>
        </tr>
    </table>
     <script type="text/javascript">
         $("#result").hide();//将结果DIV隐藏
         $('#star').raty({
             hints: ['1', '2', '3', '4', '5'],
             path: "../images",
             starOff: 'star-off-big.png',
             starOn: 'star-on-big.png',
             size: 24,
             target: '#result',
             score: '<asp:Literal ID="ltrSore" runat="server"></asp:Literal>',
             targetKeep: true
         });

         //弹出结果
         var text = $('#result').text();
         $('img').click(function () {
             if ($('#result').text() != text) { 
                 $("[datafield='hfLevel']").val($('#result').text()); 
                 return;
             }
         });
    </script>
</asp:Content>
